package com.smart_campus.bus.service;


import com.smart_campus.bus.domain.Journal;
import com.smart_campus.bus.domain.ModelType;
import com.smart_campus.bus.vo.JournalVo;
import com.smart_campus.sys.common.DataGridView;
import com.smart_campus.sys.common.ResultObj;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author saoji
 * @since 2020-06-07
 */

public interface JournalService {

    List<Journal> getJournal(Integer page, Integer limit,String type,String keyWords);

    List<ModelType> getAllModelType();//查询模块类型

    List<Journal> getDataByModel(Integer page,Integer limit,String model);//查询某个模块的数据

    List<Journal> getHotNews();//查询热文

    Journal getDataById(int id);//根据id查询

    Boolean addJournal(Journal journal);//添加

    Boolean updateJournal(Journal journal);//修改

    Boolean removeJournal(int id);//删除

    DataGridView selallJournal(JournalVo vo);

    Boolean addReadCount(Journal journal);//阅读量+1

    Boolean addCommentCount(Journal journal);//评论+1

}
